# print(12237)
# print('你在搞鸡毛')
# print('hello python'+str(123))


# # print(12237,end=' ')
# print(type('nizigaojim'))
# print(type())

# name = ['张三', '李四', '王二', '麻子', '王二', '张三']
# # print(len(name))
# # print(name[0])
# # print(name[-4])
# # print(name[1])
# # print(name[-3])
# # print(name[2])
# # print(name[-2])
# # print(name[3])
# print(name[-1])
# print(name.index('王二'))
# print(name.index('张三',1,6))
# print(name.index('张三',1))
# print(name.index('王二',0))4
# print(name.index('王二',3))
# print(name.index('麻子',0,2))
# name=['张三','李四','王二','麻子','王二','张三']
# print(name[0:1])
# print(name[::-1])
# print(name[4:0:-1])
# print(name[2:5:2])
# print(name[0:0:-1])
# name = ['张三', '李四', '王二', '麻子', '王二', '张三']
# name.append('坤坤')
# name.extend('鸡你太美')
# name.insert(1, '篮球')
# print(name)
# name = ['张三', '李四', '王二', '麻子', '王二', '张三']
# name.remove('张三')
# name.remove('张三')
# name.pop(5)
# name.clear()
# del name[0]
# # name[0:2]=[]
# del name[-1:-2:-1]
#
# print(name)

# for i in range(0,len(name)):
#     name.pop()
#
# print(name)
# from random import randint
# list = []
# for i in range(1, 5):
#     list.append(randint(1, 100))
# new_list = sorted(list, reverse=True)
# print(new_list)

# dict = {'name': '张三', 'sex': '女', 'age': '18'}
# print(dict['name'])
# print(dict.get('sex'))
# print(dict.get('class',2))
# # dict1 = {}
# print(dict)

dict={'name':'张三','sex':'女','age':'18'}
# key=dict.keys()
# print(key)
# value=dict.values()
# print(value)
# key_value=dict.items()
# print(key_value)

for i in dict:
    print('键是',i,'值是',dict[i])
# dict = {'name': '张三', 'sex': '女', 'age': '18'}
# dict['like']='打篮球'
# dict['like']='rap'
# del dict
# print(dict)
